<script setup lang="ts">
import { routes } from "@/router";
import { getCurrentInstance } from "vue";
import { Test } from "@/api/test";
// Test();
// console.log("routes", routes);
const instance = getCurrentInstance();
// console.log(instance?.proxy?.$env);
</script>

<template>
  <!-- <div class="container"> -->
  <template v-for="(route, index) in routes" :key="index">
    <router-link v-if="route.meta.unit" :to="route.path">
      <el-button type="primary">{{ route.meta.title }}</el-button>
    </router-link>
  </template>
  <!-- </div> -->
</template>

<style lang="scss">
.container {
  padding: 16px;
  border: 1px solid pink;
}
</style>
